package com.tovast.demo.repository;


import com.tovast.demo.domain.Attendance;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by zjp on 2016/9/30.
 */

public interface AttendanceRepostiroy extends JpaRepository<Attendance,Integer> {
    public List<Attendance> findAllByUserNameContaining(String name);
    //select o from Attendance o where o.user.name like %name%
    public Page<Attendance> findAllByUserNameContaining(String name, Pageable pageable);
}
